<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>修改品牌</title>
</head>
<body>
<h3>修改品牌</h3>
<form action="UpdateBrandServlet" method="get">
    <input type="hidden" name="id" value="${brand.id}">
    品牌名称：<input name="brandName" value="${brand.brandName}"><br>
    企业名称：<input name="companyName" value="${brand.companyName}"><br>
    排序：<input name="ordered" value="${brand.ordered}"><br>
    描述信息：<textarea rows="5" cols="20" name="description">${brand.description}</textarea><br>
    状态：
    <input id = "inp1" type="radio" name="status" value="0" >禁用
    <input id = "inp2" type="radio" name="status" value="1">启用<br>
    <input type="submit" value="提交">
</form>
</body>
<script>
    if(${brand.status == 1}){
        var inp2 = document.getElementById("inp2");
        inp2.checked = true;
    }
    if(${brand.status == 0}){
        var inp1 = document.getElementById("inp1");
        inp1.checked = true;
    }
</script>
</html>